package com.Shoping.service.impl;

import com.Shoping.dao.CategoryDao;
import com.Shoping.dao.impl.CategoryDaoImpl;
import com.Shoping.entity.Category;
import com.Shoping.service.CategoryService;

import java.sql.SQLException;

public class CategoryServiceImpl implements CategoryService {
    private CategoryDao categoryDao = new CategoryDaoImpl();
    @Override
    public Category selectByCgId(Integer cgId) throws SQLException {
        return categoryDao.selectByCgId(cgId);
    }
}
